//https://github.com/eshengsky/jQuery-emoji
var siteim_emoji_option = {
    showTab: true,  //当只有一组表情时，是否仍然显示Tab
    animation: 'slide',
    button: "#siteim_select_face_btn_1",   //触发按钮
    position: "topLeft",  //表情面板位置，可能的值：'bottomRight':在按钮右下，'bottomLeft':在按钮左下，'topRight':在按钮右上，'topLeft':在按钮左上。
    icons: [
        {
            name: 'layui表情',
            path: '/res/layui/images/face/',
            maxNum: 71,
            // excludeNums: [ 41, 45, 54 ],
            file: '.gif',
            placeholder: ':{alias}:'
        }
    ]
};

var siteim_emojioptions = {};//siteim_emoji_option;
siteim_emojioptions[1] = deepCopy(siteim_emoji_option);
siteim_emojioptions[1].button = "#siteim_select_face_btn_1";

siteim_emojioptions[2] = deepCopy(siteim_emoji_option);
siteim_emojioptions[2].button = "#siteim_select_face_btn_2";


var siteim_emoji_option_parse = deepCopy(siteim_emoji_option);


var siteim_emoji_inited = {};
siteim_emoji_inited[1] = false;
siteim_emoji_inited[2] = false;

function siteim_init_emoji() {
    if (!siteim_emoji_inited[chat_mode]) {
        siteim_emoji_inited[chat_mode] = true;
        $('#siteim_chat_text_' + chat_mode).emoji(siteim_emojioptions[chat_mode]);
    }
}

function siteim_emoji_show() {
    siteim_init_emoji();
}